package com.song.mall.auth.feign;

import com.song.common.utils.R;
import com.song.mall.auth.vo.SocialUser;
import com.song.mall.auth.vo.UserLoginVo;
import com.song.mall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 宋超
 * HP - the login name of the current user.
 * 2021/10/4 - the current system date.
 * 8:46 - the current system time.
 */
@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("member/member/oauth2/login")
    R oauthlogin(@RequestBody SocialUser socialUser) throws Exception;



}
